package com.cskaoyan.vo.wxfree;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @program: mall
 * @description:
 * @author: Mr.Mengmeng
 * @create: 2021-04-12 14:25
 **/
@Data
public class WxFootprintListVo {

    /**
     * footprintList : [{"brief":"18寸，可携带登机","picUrl":"http://yanxuan.nosdn.127.net/c1c62211a17b71a634fa0c705d11fb42.png","addTime":"2021-04-12 11:57:08","goodsId":1152101,"name":"魔兽世界 部落 奥格瑞玛 拉杆箱 可登机","id":155,"retailPrice":888},{"brief":"18寸，可携带登机","picUrl":"http://yanxuan.nosdn.127.net/c1c62211a17b71a634fa0c705d11fb42.png","addTime":"2021-04-12 11:57:01","goodsId":1152101,"name":"魔兽世界 部落 奥格瑞玛 拉杆箱 可登机","id":154,"retailPrice":888},{"brief":"18寸，可携带登机","picUrl":"http://yanxuan.nosdn.127.net/c1c62211a17b71a634fa0c705d11fb42.png","addTime":"2021-04-12 11:34:39","goodsId":1152101,"name":"魔兽世界 部落 奥格瑞玛 拉杆箱 可登机","id":140,"retailPrice":888},{"brief":"18寸，可携带登机","picUrl":"http://yanxuan.nosdn.127.net/c1c62211a17b71a634fa0c705d11fb42.png","addTime":"2021-04-12 11:34:34","goodsId":1152101,"name":"魔兽世界 部落 奥格瑞玛 拉杆箱 可登机","id":139,"retailPrice":888},{"brief":"18寸，可携带登机","picUrl":"http://yanxuan.nosdn.127.net/c1c62211a17b71a634fa0c705d11fb42.png","addTime":"2021-04-12 11:11:59","goodsId":1152101,"name":"魔兽世界 部落 奥格瑞玛 拉杆箱 可登机","id":130,"retailPrice":888},{"brief":"来自天然彩棉的礼物","picUrl":"http://yanxuan.nosdn.127.net/9aab9a0bf4fef8fe3dc8c732bc22d4b7.png","addTime":"2021-04-12 11:11:55","goodsId":1033000,"name":"新生彩棉初衣礼盒（婴童）","id":129,"retailPrice":199},{"brief":"盖毯、沙发垫、椅垫、地垫","picUrl":"http://yanxuan.nosdn.127.net/dc9d09334eb201fe9408ed604e549941.png","addTime":"2021-04-12 11:10:44","goodsId":1130042,"name":"皮毛一体多用单张长毛皮垫","id":125,"retailPrice":239},{"brief":"盖毯、沙发垫、椅垫、地垫","picUrl":"http://yanxuan.nosdn.127.net/dc9d09334eb201fe9408ed604e549941.png","addTime":"2021-04-12 11:10:29","goodsId":1130042,"name":"皮毛一体多用单张长毛皮垫","id":124,"retailPrice":239},{"brief":"安心舒适是最好的礼物","picUrl":"http://yanxuan.nosdn.127.net/1f67b1970ee20fd572b7202da0ff705d.png","addTime":"2021-04-12 00:03:01","goodsId":1181000,"name":"母亲节礼物-舒适安睡组合","id":82,"retailPrice":2598},{"brief":"100%桑蚕丝，丝滑润肤","picUrl":"http://yanxuan.nosdn.127.net/45548f26cfd0c7c41e0afc3709d48286.png","addTime":"2021-04-11 23:59:39","goodsId":1135002,"name":"宫廷奢华真丝四件套","id":81,"retailPrice":2599}]
     * totalPages : 3
     */

    private int totalPages;
    private List<FootprintListBean> footprintList;

    public WxFootprintListVo(int totalPages, List<FootprintListBean> footprintList) {
        this.totalPages = totalPages;
        this.footprintList = footprintList;
    }

    public WxFootprintListVo() {
    }

    @Data
    public static class FootprintListBean {
        /**
         * brief : 18寸，可携带登机
         * picUrl : http://yanxuan.nosdn.127.net/c1c62211a17b71a634fa0c705d11fb42.png
         * addTime : 2021-04-12 11:57:08
         * goodsId : 1152101
         * name : 魔兽世界 部落 奥格瑞玛 拉杆箱 可登机
         * id : 155
         * retailPrice : 888.0
         */

        private String brief;
        private String picUrl;
        @DateTimeFormat
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private Date addTime;
        private Integer goodsId;
        private String name;
        private Integer id;
        private BigDecimal retailPrice;

        public FootprintListBean(String brief, String picUrl, Date addTime, Integer goodsId, String name, Integer id, BigDecimal retailPrice) {
            this.brief = brief;
            this.picUrl = picUrl;
            this.addTime = addTime;
            this.goodsId = goodsId;
            this.name = name;
            this.id = id;
            this.retailPrice = retailPrice;
        }

        public FootprintListBean() {
        }
    }
}
